﻿using System.Collections;

namespace System.Linq
{
    public static class EnumerableExtentions
    {
        public static string ToCsv(this IEnumerable lst, string separator = ",")
        {
            return
                string.Join(separator, lst.OfType<object>().Select(o => o.ToString()).ToArray());
        }
    }
}
